//
//  NotificationManager.h
//  HdStore
//
//  Created by zhenqiu on 15/11/23.
//  Copyright (c) 2015年 zhenqiu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "LoanWebTipManager.h"


@protocol RemoteNotificationDelegate <NSObject>

@optional
-(void)didReceiveRemoteNotification:(NSDictionary *)userInfo;
-(void)didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken;
-(void)didFailToRegisterForRemoteNotificationsWithError:(NSError *)error;
-(void)sendDeviceToken:(NSString *)token;

@end

@protocol LocalNotificationDelegate <NSObject>

@optional
-(void)didReceiveLocalNotification:(UILocalNotification *) userInfo;

@end


@interface NotificationManager : NSObject <RemoteNotificationDelegate,LocalNotificationDelegate>
{
    id manager;
}
@property(nonatomic,strong) id manager;

@property (nonatomic,assign) NSInteger loan_baoxian_status;
@property (nonatomic,strong) LoanWebTipModel *tipModel;


// remote notification

+ (id) getInstance;
-(void) registerRemoteNotification;
-(void) startListen;
-(void) checkLaunchingOptions:(NSDictionary *)launchOptions;

// local notification // need check

-(void)registerLocalNotification;
-(void)sendLocalNotication:(id)info ;
-(void)cancelLocalNoticaton:(NSString * ) key;
-(void)cancelAllNotications;
- (void)getLoanBaoxianStatus;
- (void)getLoanListTipStatus;

@end
